var path = IMPORTS.require('path');
var fs = IMPORTS.require('fs');

function setError(future, message) {
	var error = new Error(message);
	error.errorText = error.message;
	error.errorCode = -1;
	future.exception = error;
}
